#include <iostream>
#include <thread>

using namespace std;


void do_master_thread_work();
void do_common_work();

std::thread::id master_thread;
void some_core_part_of_algorithm()
{
    if(std::this_thread::get_id()==master_thread)
    {
        do_master_thread_work();
    }
    do_common_work();
}

int main()
{
    return 0;
}

